Replace sprintf with snprintf and strncpy with strlcpy.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 29 Jan 2007 10:52:17 +0000 (10:52 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 29 Jan 2007 10:52:17 +0000 (10:52 +0000)
commit45ce6547e6bde8cdf8f3dcaba833a3bda8f3c889
tree9ce439909a9e3816fbac7b29bac84009fced953e
parentc642ec17d0d541835334b676e972539fdd5becdc
Replace sprintf with snprintf and strncpy with strlcpy.

There are various cases where no NULL-terminated strings are
guaranteed and eventual possible overflows. This patch fixes them.

From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
14 files changed:
xen/arch/x86/cpu/centaur.c
xen/arch/x86/cpu/common.c
xen/arch/x86/domain_build.c
xen/arch/x86/hvm/intercept.c
xen/arch/x86/oprofile/nmi_int.c
xen/arch/x86/setup.c
xen/arch/x86/time.c
xen/common/gdbstub.c
xen/common/kernel.c
xen/common/keyhandler.c
xen/common/libelf/libelf-dominfo.c
xen/common/perfc.c
xen/common/rangeset.c
xen/common/symbols.c